class CreateForeignExchangeRates < ActiveRecord::Migration
  def self.up
    create_table :foreign_exchange_rates do |t|
      t.integer :money_type_id
      t.decimal :spot_rate_buying_price,
        :spot_cash_buying_price,
        :selling_price,
        :base_price,
        :zh_convert_price, :precision => 8, :scale => 2, :default => 0.0
      t.datetime :released_at
      t.timestamps
    end
  end

  def self.down
    drop_table :foreign_exchange_rates
  end
end
